<div class="list_ideal" style=" font-size: 14px;">

<?php
for($i = 0; $i < count($data); $i++){
 $ideal = $data[$i];
 $hoso = $dataHoso[$i];
 $date = DateTime::createFromFormat('Y-m-d H:i:s', $ideal['Ngay']);
?>  <div style='width: 97%; padding-right: 3%; float: left;'><hr /></div>
    <div class='title_ideal' style='line-height: 25px; font-size: 16px; float: left; '><a href='<?php echo base_url('nhanvien/ideal/detailideal/'.$ideal['MaYTuong']); ?>'><?php echo "<b>".$ideal['TieuDe']."</b>"; ?></a> </div>
    <div class='ngay-author_ideal' style='margin-left: 20px; width: 95%; float: left;' ><?php echo "<b>".$hoso[0]->HoTen."</b> - ".$date->format('Y/m/d'); ?> </div>
    <div class='content_ideal' style='width: 97%; float: left;' ><?php echo $ideal['MoTa'] ?></div>
    <div class='detail_ideal' style='margin-right: 3%; float: right;'><a href='<?php echo base_url('nhanvien/ideal/detailideal/'.$ideal['MaYTuong']); ?>'>more detail</a></div>

<?php }?>
<div style='width: 97%; padding-right: 3%; float: left;'><hr /></div>
<div class="pagination" style="width: 100%; float: left; text-align: center; "><?php echo $links; ?></div>
</div>